home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2000 #5
/
Amiga Plus CD - 2000 - No. 5.iso
/
Tools
/
Misc
/
InstallerNG
/
developer
/
gui
/
example
/
igui_FreeApp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1999-10-28
|
1KB
|
61 lines
#include "includes.h"
#include "installergui_data.h"
/********************************************************************
*
* DESCRIPTION
*
* dispose the application an related resources; note that
* the argument can also be NULL!
*
* IN: application - pointer to the private application structure
* OUT: -
*
*/
/********************************************************************
*
* STATIC
*
*/
/********************************************************************
*
* EXTERN
*
*/
/********************************************************************
*
* PUBLIC
*
*/
/********************************************************************
*
* CODE
*
*/
void __asm igui_FreeApp(register __a0 APTR application)
{
#ifdef DEBUG
DEBUG_MAKRO
#endif
if (application)
{
struct Application *app = (struct Application *) application;
// dispose the complete mui application
if (app->app_Application) { DisposeObject(app->app_Application); }
// free the application memory itself
FreeVec(app);
}
// close the mui library
if (MUIMasterBase) { CloseLibrary(MUIMasterBase); }
}